<template>
  <div>
    put
  </div>
</template>

<script>
  import axios from "axios"
  export default {
    name: "patch_demo",
    async created(){
      /*await axios({
        method:"put",
        url:"https://api.github.com/repos/betterDamu/sh_200318/issues/52/lock",
        data:{
          "locked": true,
          "active_lock_reason": "too heated"
        },
        // headers:{
        //   "Authorization":"token 9cb410cdb6faf002c35d3e6cfffc767ca323ca25"
        // }
      })*/

      await axios.put(
        "https://api.github.com/repos/betterDamu/sh_200318/issues/52/lock",
        {
          "locked": true,
          "active_lock_reason": "too heated"
        },
        {
          headers:{
            "Authorization":"token 9cb410cdb6faf002c35d3e6cfffc767ca323ca25"
          }
        }
      )
    }
  }
</script>

<style scoped>

</style>
